<div class="post">
    <?php if (isset($errors)) {
    ?>
        <div class="error">
            User <?= $username ?> is an admin.
        </div>
    <?php } else {
    ?>
    <h2 style="text-transform: capitalize"><?= $first_name; ?> <?= $surname; ?> <?= $other_names; ?></h2>
        <div class="entry">
            <table style="border:5px;border-style:solid;">
                <tr class="darker">
                    <th>
                        Username
                    </th>
                    <td>
                    <?= $username; ?>
                </td>
            </tr>
            <tr class="lighter">
                <th>
                    Department
                </th>
                <td>
                    <?= $dept_id; ?>
                </td>
            </tr>
            <tr class="darker">
                <th>
                    Phone number
                </th>
                <td>
                    <?= $phone_number; ?>
                </td>
            </tr>
            <tr class="lighter">
                <th>
                    Email address
                </th>
                <td>
                    <?= $email; ?>
                </td>
            </tr>
            <tr class="darker">
                <th>
                    ID No.
                </th>
                <td>
                    <?= $idno; ?>
                </td>
            </tr>
            <tr class="lighter">
                <th>
                    Payroll No.
                </th>
                <td>
                    <?= $pay_roll_no; ?>
                </td>
            </tr>
            <tr class="darker">
                <th>
                    Date of employment
                </th>
                <td>
                    <?= $date_of_employment; ?>
                </td>
            </tr>
            <tr class="lighter">
                <th>
                    Date registered
                </th>
                <td>
                    <?= $date_registered; ?>
                </td>
            </tr>
            <tr class="darker">
                <th>
                    Last visit
                </th>
                <td>
                    <?= $date_last_login; ?>
                </td>
            </tr>
        </table>
    </div>
    <?php } ?>

                <input type="button" onclick="hide('#<?= $div; ?>')" value="Close" />
</div>